package com.study.shop.mapper;

import com.study.shop.entity.dto.UserDTO;
import com.study.shop.entity.po.User;

/**
* @author eastj
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-07-19 19:05:33
* @Entity com.study.shop.entity.po.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getUserByUsername(String username);

    UserDTO getUserDTOById(Long userId);
}
